/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package VIEW;
import BEANS.ComboItem;
import CONTROLLERS.ReportsController;
import java.awt.event.KeyEvent;
import javax.swing.JComboBox;
import javax.swing.JTable;
/**
 *
 * @author weak_2030
 */
public class Reports extends javax.swing.JPanel {
    private static ReportsController reportsController;
   
    /**
     * Creates new form Reports
     */
    public Reports() {        
        try {                
        initComponents();
        reportsController = new ReportsController(transactionTable, inventoryTable, salesCheckBox, 
                deliveryCheckBox, returnsCheckBox, transferCheckBox, tradeCheckBox, 
                adjustmentsCheckBox, replacementCheckBox, salesDialog, salesProd, salesDate, salesReceipt, 
                salesQty, salesSerial, salesType, deliveryDialog, deliveryDate,
                deliverySupp, deliveryReceipt, deliveryQty, deliveryProd, transferDialog,
                transferProd, transferQty, transferFrom, transferTo, transferDate,
                returnsDialog, returnsProd, returnsSupplier, returnsDate, returnsQty,
                returnsRemarks, returnsStatus, jLabel23, adjustmentsDialog, adjProd, adjOperation,
                adjQty, adjDate, adjReason, dateChooserComboFrom, dateChooserComboTo, tradeInDialog,
                tradeProd, tradeTo, tradeQty, tradeType, tradeDate, searchTextField, productFilterCategoryComboBox,
                productFilterSupplierComboBox, clearMark, brandnew, secondhand, defective, jLabel5, jLabel12, jLabel17,
                rplName, rplWith, rplQty, rplRcpt, rplDate, rplRemarks, replacementDialog);
        salesDialog.setLocationRelativeTo(null);
        deliveryDialog.setLocationRelativeTo(null);
        transferDialog.setLocationRelativeTo(null);
        returnsDialog.setLocationRelativeTo(null);
        replacementDialog.setLocationRelativeTo(null);
        adjustmentsDialog.setLocationRelativeTo(null);
        tradeInDialog.setLocationRelativeTo(null);
        reportsController.justDClickIt(transactionTable);
        
    }catch (Exception e ){
    }
}
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        salesDialog = new javax.swing.JDialog();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        salesDate = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        salesReceipt = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        salesQty = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        salesSerial = new javax.swing.JLabel();
        salesType = new javax.swing.JLabel();
        jButton9 = new javax.swing.JButton();
        salesProd = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        deliveryDialog = new javax.swing.JDialog();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        deliveryDate = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        deliverySupp = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        deliveryReceipt = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        deliveryQty = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        deliveryProd = new javax.swing.JLabel();
        jButton8 = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        transferDialog = new javax.swing.JDialog();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        transferProd = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        transferQty = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        transferFrom = new javax.swing.JLabel();
        transferTo = new javax.swing.JLabel();
        jButton7 = new javax.swing.JButton();
        jLabel37 = new javax.swing.JLabel();
        transferDate = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        returnsDialog = new javax.swing.JDialog();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        returnsProd = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        returnsSupplier = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        returnsDate = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        returnsQty = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        returnsRemarks = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        returnsStatus = new javax.swing.JLabel();
        jButton6 = new javax.swing.JButton();
        jLabel18 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        adjustmentsDialog = new javax.swing.JDialog();
        jLabel52 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        adjProd = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        adjOperation = new javax.swing.JLabel();
        jLabel57 = new javax.swing.JLabel();
        adjQty = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        adjDate = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        adjReason = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        tradeInDialog = new javax.swing.JDialog();
        jLabel54 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        tradeProd = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        tradeTo = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        tradeQty = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        tradeType = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        tradeDate = new javax.swing.JLabel();
        jButton11 = new javax.swing.JButton();
        replacementDialog = new javax.swing.JDialog();
        rplName = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        rplWith = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        rplQty = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        rplDate = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jButton12 = new javax.swing.JButton();
        jLabel34 = new javax.swing.JLabel();
        rplRemarks = new javax.swing.JLabel();
        rplRcpt = new javax.swing.JLabel();
        tradeType1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        inventoryTable = new javax.swing.JTable();
        clearMark = new javax.swing.JLabel();
        searchTextField = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        productFilterCategoryComboBox = new javax.swing.JComboBox<ComboItem>();
        jLabel21 = new javax.swing.JLabel();
        productFilterSupplierComboBox = new javax.swing.JComboBox<ComboItem>();
        jLabel10 = new javax.swing.JLabel();
        jButton4 = new javax.swing.JButton();
        brandnew = new javax.swing.JCheckBox();
        secondhand = new javax.swing.JCheckBox();
        defective = new javax.swing.JCheckBox();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        dateChooserComboTo = new datechooser.beans.DateChooserCombo();
        dateChooserComboFrom = new datechooser.beans.DateChooserCombo();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        transactionTable = new javax.swing.JTable();
        salesCheckBox = new javax.swing.JCheckBox();
        deliveryCheckBox = new javax.swing.JCheckBox();
        tradeCheckBox = new javax.swing.JCheckBox();
        replacementCheckBox = new javax.swing.JCheckBox();
        transferCheckBox = new javax.swing.JCheckBox();
        returnsCheckBox = new javax.swing.JCheckBox();
        adjustmentsCheckBox = new javax.swing.JCheckBox();
        jButton10 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        salesDialog.setTitle("Sales Details");
        salesDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        salesDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        salesDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("Sales");

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel7.setText("Product Name:");

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel9.setText("Date:");

        salesDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesDate.setText("jLabel9");

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel11.setText("Receipt Number:");

        salesReceipt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesReceipt.setText("jLabel11");

        jLabel13.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel13.setText("Quantity Sold:");

        salesQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesQty.setText("jLabel13");

        jLabel15.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel15.setText("Serial Number:");

        jLabel16.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel16.setText("Sales Type:");

        salesSerial.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesSerial.setText("jLabel16");

        salesType.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesType.setText("jLabel17");

        jButton9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton9.setText("Close");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        salesProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        salesProd.setText("jLabel9");

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel4.setText("Remarks:");

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel5.setText("jLabel5");

        javax.swing.GroupLayout salesDialogLayout = new javax.swing.GroupLayout(salesDialog.getContentPane());
        salesDialog.getContentPane().setLayout(salesDialogLayout);
        salesDialogLayout.setHorizontalGroup(
            salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(salesDialogLayout.createSequentialGroup()
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(salesDialogLayout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel15)
                            .addComponent(jLabel13)
                            .addComponent(jLabel7)
                            .addComponent(jLabel9)
                            .addComponent(jLabel11)
                            .addComponent(jLabel16)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(salesDate)
                            .addComponent(salesProd)
                            .addComponent(salesReceipt)
                            .addComponent(salesQty)
                            .addComponent(salesSerial)
                            .addComponent(salesType)
                            .addComponent(jLabel5))
                        .addGap(0, 334, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, salesDialogLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton9))
                    .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        salesDialogLayout.setVerticalGroup(
            salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(salesDialogLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(salesProd))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(salesDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(salesReceipt))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(salesQty))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(salesSerial))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(salesType))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(salesDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, Short.MAX_VALUE)
                .addComponent(jButton9)
                .addContainerGap())
        );

        deliveryDialog.setTitle("Delivery Details");
        deliveryDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 280));
        deliveryDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        deliveryDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel19.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel19.setText("Delivery");

        jLabel20.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel20.setText("Date Received:");

        deliveryDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        deliveryDate.setText("jLabel19");

        jLabel22.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel22.setText("Supplier:");

        deliverySupp.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        deliverySupp.setText("jLabel21");

        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel24.setText("Receipt Number:");

        deliveryReceipt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        deliveryReceipt.setText("jLabel23");

        jLabel26.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel26.setText("Quantity Delivered:");

        deliveryQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        deliveryQty.setText("jLabel25");

        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel28.setText("Product Name:");

        deliveryProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        deliveryProd.setText("jLabel27");

        jButton8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton8.setText("Close");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel8.setText("Remarks:");

        jLabel12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel12.setText("jLabel12");

        javax.swing.GroupLayout deliveryDialogLayout = new javax.swing.GroupLayout(deliveryDialog.getContentPane());
        deliveryDialog.getContentPane().setLayout(deliveryDialogLayout);
        deliveryDialogLayout.setHorizontalGroup(
            deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deliveryDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, deliveryDialogLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton8))
                    .addGroup(deliveryDialogLayout.createSequentialGroup()
                        .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel8)
                            .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(deliveryDialogLayout.createSequentialGroup()
                                    .addGap(14, 14, 14)
                                    .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(jLabel22)
                                        .addComponent(jLabel20)
                                        .addComponent(jLabel24)
                                        .addComponent(jLabel28)))
                                .addComponent(jLabel26)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(deliveryDate)
                            .addComponent(deliverySupp)
                            .addComponent(deliveryReceipt)
                            .addComponent(deliveryQty)
                            .addComponent(deliveryProd)
                            .addComponent(jLabel12))
                        .addGap(0, 355, Short.MAX_VALUE)))
                .addContainerGap())
        );
        deliveryDialogLayout.setVerticalGroup(
            deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deliveryDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel19)
                .addGap(18, 18, 18)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(deliveryProd))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel20)
                    .addComponent(deliveryDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(deliverySupp)
                    .addComponent(jLabel22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(deliveryReceipt)
                    .addComponent(jLabel24))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(deliveryQty)
                    .addComponent(jLabel26))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(deliveryDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 95, Short.MAX_VALUE)
                .addComponent(jButton8)
                .addContainerGap())
        );

        transferDialog.setTitle("Transfer Details");
        transferDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        transferDialog.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        transferDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        transferDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel30.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel30.setText("Transfer");

        jLabel31.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel31.setText("Product Name:");

        transferProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        transferProd.setText("jLabel30");

        jLabel33.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel33.setText("Quantity:");

        transferQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        transferQty.setText("jLabel32");

        jLabel35.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel35.setText("Transfer From:");

        jLabel36.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel36.setText("Transfer To:");

        transferFrom.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        transferFrom.setText("jLabel35");

        transferTo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        transferTo.setText("jLabel36");

        jButton7.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton7.setText("Close");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jLabel37.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel37.setText("Date:");

        transferDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        transferDate.setText("jLabel35");

        jLabel14.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel14.setText("Remarks:");

        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel17.setText("jLabel17");

        javax.swing.GroupLayout transferDialogLayout = new javax.swing.GroupLayout(transferDialog.getContentPane());
        transferDialog.getContentPane().setLayout(transferDialogLayout);
        transferDialogLayout.setHorizontalGroup(
            transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(transferDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, transferDialogLayout.createSequentialGroup()
                        .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel33)
                            .addComponent(jLabel31))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(transferProd)
                            .addComponent(transferQty))
                        .addGap(0, 380, Short.MAX_VALUE))
                    .addGroup(transferDialogLayout.createSequentialGroup()
                        .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel37)
                            .addComponent(jLabel35)
                            .addComponent(jLabel36)
                            .addComponent(jLabel14))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(transferDialogLayout.createSequentialGroup()
                                .addComponent(transferFrom)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton7))
                            .addGroup(transferDialogLayout.createSequentialGroup()
                                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(transferTo)
                                    .addComponent(transferDate)
                                    .addComponent(jLabel17))
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        transferDialogLayout.setVerticalGroup(
            transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(transferDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(transferProd))
                .addGap(18, 18, 18)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(transferQty)
                    .addComponent(jLabel33))
                .addGap(18, 18, 18)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(transferDate))
                .addGap(15, 15, 15)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(transferFrom)
                    .addComponent(jLabel35))
                .addGap(18, 18, 18)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(transferTo)
                    .addComponent(jLabel36))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addGroup(transferDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(jLabel17))
                .addGap(41, 41, 41)
                .addComponent(jButton7))
        );

        returnsDialog.setTitle("Returns Details");
        returnsDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        returnsDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        returnsDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel39.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel39.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel39.setText("Returns");

        jLabel40.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel40.setText("Product Name:");

        returnsProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsProd.setText("jLabel39");

        jLabel42.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel42.setText("Supplier:");

        returnsSupplier.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsSupplier.setText("jLabel41");

        jLabel44.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel44.setText("Date:");

        returnsDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsDate.setText("jLabel43");

        jLabel46.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel46.setText("Quantity:");

        returnsQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsQty.setText("jLabel45");

        jLabel48.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel48.setText("Serial Number:");

        returnsRemarks.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsRemarks.setText("jLabel47");

        jLabel50.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel50.setText("Status:");

        returnsStatus.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        returnsStatus.setText("jLabel49");

        jButton6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton6.setText("Close");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jLabel18.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel18.setText("Remarks:");

        jLabel23.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel23.setText("jLabel23");

        javax.swing.GroupLayout returnsDialogLayout = new javax.swing.GroupLayout(returnsDialog.getContentPane());
        returnsDialog.getContentPane().setLayout(returnsDialogLayout);
        returnsDialogLayout.setHorizontalGroup(
            returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(returnsDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel39, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(returnsDialogLayout.createSequentialGroup()
                        .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel42)
                            .addComponent(jLabel40)
                            .addComponent(jLabel44)
                            .addComponent(jLabel46)
                            .addComponent(jLabel48)
                            .addComponent(jLabel50)
                            .addComponent(jLabel18))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(returnsDialogLayout.createSequentialGroup()
                                .addGap(0, 366, Short.MAX_VALUE)
                                .addComponent(jButton6))
                            .addGroup(returnsDialogLayout.createSequentialGroup()
                                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(returnsProd)
                                    .addComponent(returnsSupplier)
                                    .addComponent(returnsDate)
                                    .addComponent(returnsQty)
                                    .addComponent(returnsStatus)
                                    .addComponent(jLabel23)
                                    .addComponent(returnsRemarks))
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        returnsDialogLayout.setVerticalGroup(
            returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(returnsDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel39)
                .addGap(18, 18, 18)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(returnsProd))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(returnsSupplier))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel44)
                    .addComponent(returnsDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel46)
                    .addComponent(returnsQty))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel48)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel50)
                    .addComponent(returnsStatus))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(returnsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(returnsRemarks))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
                .addComponent(jButton6)
                .addContainerGap())
        );

        adjustmentsDialog.setTitle("Adjustment Details");
        adjustmentsDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        adjustmentsDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        adjustmentsDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel52.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel52.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel52.setText("Adjustments");

        jLabel53.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel53.setText("Product Name:");

        adjProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        adjProd.setText("jLabel52");

        jLabel55.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel55.setText("Operation:");

        adjOperation.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        adjOperation.setText("jLabel54");

        jLabel57.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel57.setText("Quantity:");

        adjQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        adjQty.setText("jLabel56");

        jLabel59.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel59.setText("Date:");

        adjDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        adjDate.setText("jLabel58");

        jLabel61.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel61.setText("Reason:");

        adjReason.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        adjReason.setText("jLabel60");

        jButton5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton5.setText("Close");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout adjustmentsDialogLayout = new javax.swing.GroupLayout(adjustmentsDialog.getContentPane());
        adjustmentsDialog.getContentPane().setLayout(adjustmentsDialogLayout);
        adjustmentsDialogLayout.setHorizontalGroup(
            adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adjustmentsDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel52, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(adjustmentsDialogLayout.createSequentialGroup()
                        .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel53)
                            .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(adjustmentsDialogLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(jLabel57))
                                .addComponent(jLabel55))
                            .addComponent(jLabel59)
                            .addComponent(jLabel61))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(adjProd)
                            .addComponent(adjOperation)
                            .addComponent(adjQty)
                            .addComponent(adjDate)
                            .addComponent(adjReason))
                        .addGap(0, 380, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, adjustmentsDialogLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton5)))
                .addContainerGap())
        );
        adjustmentsDialogLayout.setVerticalGroup(
            adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adjustmentsDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel52)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel53)
                    .addComponent(adjProd))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel55)
                    .addComponent(adjOperation))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel57)
                    .addComponent(adjQty))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel59)
                    .addComponent(adjDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(adjustmentsDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel61)
                    .addComponent(adjReason))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, Short.MAX_VALUE)
                .addComponent(jButton5)
                .addGap(20, 20, 20))
        );

        tradeInDialog.setTitle("Reports Details");
        tradeInDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        tradeInDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        tradeInDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabel54.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel54.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel54.setText("Trade In");

        jLabel56.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel56.setText("Product Name:");

        tradeProd.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeProd.setText("jLabel52");

        jLabel58.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel58.setText("Swapped to:");

        tradeTo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeTo.setText("jLabel54");

        jLabel60.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel60.setText("Quantity:");

        tradeQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeQty.setText("jLabel56");

        jLabel62.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel62.setText("Type of Trade:");

        tradeType.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeType.setText("jLabel58");

        jLabel63.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel63.setText("Date:");

        tradeDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeDate.setText("jLabel60");

        jButton11.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton11.setText("Close");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tradeInDialogLayout = new javax.swing.GroupLayout(tradeInDialog.getContentPane());
        tradeInDialog.getContentPane().setLayout(tradeInDialogLayout);
        tradeInDialogLayout.setHorizontalGroup(
            tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tradeInDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel54, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(tradeInDialogLayout.createSequentialGroup()
                        .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel56)
                            .addComponent(jLabel60)
                            .addComponent(jLabel62)
                            .addComponent(jLabel63)
                            .addComponent(jLabel58))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tradeProd)
                            .addComponent(tradeTo)
                            .addComponent(tradeQty)
                            .addComponent(tradeType)
                            .addComponent(tradeDate))
                        .addGap(0, 380, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tradeInDialogLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton11)))
                .addContainerGap())
        );
        tradeInDialogLayout.setVerticalGroup(
            tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tradeInDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel54)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel56)
                    .addComponent(tradeProd))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tradeTo)
                    .addComponent(jLabel58, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel60)
                    .addComponent(tradeQty))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel62)
                    .addComponent(tradeType))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tradeInDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel63)
                    .addComponent(tradeDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)
                .addComponent(jButton11)
                .addGap(39, 39, 39))
        );

        replacementDialog.setTitle("Replacement Details");
        replacementDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 300));
        replacementDialog.setMinimumSize(new java.awt.Dimension(0, 400));
        replacementDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        rplName.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplName.setText("jLabel52");

        jLabel64.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel64.setText("Product Name:");

        rplWith.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplWith.setText("jLabel54");

        jLabel65.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel65.setText("Replaced with: ");

        jLabel66.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel66.setText("Quantity:");

        rplQty.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplQty.setText("jLabel56");

        jLabel67.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel67.setText("Receipt:");

        jLabel68.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel68.setText("Date:");

        rplDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplDate.setText("jLabel60");

        jLabel69.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel69.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel69.setText("Replacement");

        jButton12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton12.setText("Close");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jLabel34.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel34.setText("Remarks:");

        rplRemarks.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplRemarks.setText("jLabel38");

        rplRcpt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        rplRcpt.setText("jLabel60");

        javax.swing.GroupLayout replacementDialogLayout = new javax.swing.GroupLayout(replacementDialog.getContentPane());
        replacementDialog.getContentPane().setLayout(replacementDialogLayout);
        replacementDialogLayout.setHorizontalGroup(
            replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(replacementDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel69, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(replacementDialogLayout.createSequentialGroup()
                        .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel64)
                            .addComponent(jLabel66)
                            .addComponent(jLabel67)
                            .addComponent(jLabel68)
                            .addComponent(jLabel65)
                            .addComponent(jLabel34))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rplName)
                            .addComponent(rplWith)
                            .addComponent(rplQty)
                            .addComponent(rplDate)
                            .addComponent(rplRemarks)
                            .addComponent(rplRcpt))
                        .addGap(0, 202, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, replacementDialogLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton12)))
                .addContainerGap())
        );
        replacementDialogLayout.setVerticalGroup(
            replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(replacementDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel69)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel64)
                    .addComponent(rplName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rplWith)
                    .addComponent(jLabel65, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel66)
                    .addComponent(rplQty))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel67)
                    .addComponent(rplRcpt))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel68)
                    .addComponent(rplDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(replacementDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel34)
                    .addComponent(rplRemarks))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98, Short.MAX_VALUE)
                .addComponent(jButton12)
                .addContainerGap())
        );

        tradeType1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tradeType1.setText("jLabel58");

        setBackground(new java.awt.Color(204, 204, 204));
        setMaximumSize(new java.awt.Dimension(814, 592));
        setPreferredSize(new java.awt.Dimension(814, 592));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Reports");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, 1120, -1));

        jTabbedPane1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        inventoryTable.setAutoCreateRowSorter(true);
        inventoryTable.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        inventoryTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Product Name", "Supplier", "Category", "Quantity", "type"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        inventoryTable.setRowHeight(20);
        jScrollPane2.setViewportView(inventoryTable);
        if (inventoryTable.getColumnModel().getColumnCount() > 0) {
            inventoryTable.getColumnModel().getColumn(3).setMaxWidth(70);
        }

        jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, 1030, 410));

        clearMark.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UI ICONS/xmark.png"))); // NOI18N
        clearMark.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                clearMarkMouseClicked(evt);
            }
        });
        clearMark.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                clearMarkKeyPressed(evt);
            }
        });
        jPanel1.add(clearMark, new org.netbeans.lib.awtextra.AbsoluteConstraints(930, 60, -1, 20));

        searchTextField.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        searchTextField.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                searchTextFieldKeyPressed(evt);
            }
        });
        jPanel1.add(searchTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 60, 250, -1));

        jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton1.setText("Search");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 60, -1, -1));

        productFilterCategoryComboBox.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        productFilterCategoryComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        productFilterCategoryComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                productFilterCategoryComboBoxActionPerformed(evt);
            }
        });
        jPanel1.add(productFilterCategoryComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 30, 170, -1));

        jLabel21.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
        jLabel21.setText("Category:");
        jPanel1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, -1, -1));

        productFilterSupplierComboBox.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        productFilterSupplierComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        productFilterSupplierComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                productFilterSupplierComboBoxActionPerformed(evt);
            }
        });
        jPanel1.add(productFilterSupplierComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 60, 170, -1));

        jLabel10.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
        jLabel10.setText("Supplier:");
        jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, -1, -1));

        jButton4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton4.setText("Save As");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 510, -1, -1));

        brandnew.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        brandnew.setSelected(true);
        brandnew.setText("Brand New");
        brandnew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                brandnewActionPerformed(evt);
            }
        });
        jPanel1.add(brandnew, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 60, -1, -1));

        secondhand.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        secondhand.setForeground(new java.awt.Color(0, 153, 0));
        secondhand.setText("Secondhand");
        secondhand.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                secondhandActionPerformed(evt);
            }
        });
        jPanel1.add(secondhand, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 60, -1, -1));

        defective.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        defective.setForeground(new java.awt.Color(0, 0, 153));
        defective.setText("Defective Products in store");
        defective.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                defectiveActionPerformed(evt);
            }
        });
        jPanel1.add(defective, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 60, -1, -1));

        jTabbedPane1.addTab("Current Inventory", jPanel1);

        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
        jLabel2.setText("From:");
        jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, -1, 14));

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
        jLabel3.setText("To:");
        jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 60, -1, -1));

        dateChooserComboTo.addSelectionChangedListener(new datechooser.events.SelectionChangedListener() {
            public void onSelectionChange(datechooser.events.SelectionChangedEvent evt) {
                dateChooserComboToOnSelectionChange(evt);
            }
        });
        dateChooserComboTo.addCommitListener(new datechooser.events.CommitListener() {
            public void onCommit(datechooser.events.CommitEvent evt) {
                dateChooserComboToOnCommit(evt);
            }
        });
        jPanel2.add(dateChooserComboTo, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 60, 170, -1));

        dateChooserComboFrom.addSelectionChangedListener(new datechooser.events.SelectionChangedListener() {
            public void onSelectionChange(datechooser.events.SelectionChangedEvent evt) {
                dateChooserComboFromOnSelectionChange(evt);
            }
        });
        dateChooserComboFrom.addCommitListener(new datechooser.events.CommitListener() {
            public void onCommit(datechooser.events.CommitEvent evt) {
                dateChooserComboFromOnCommit(evt);
            }
        });
        jPanel2.add(dateChooserComboFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 60, 170, -1));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 462, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(1109, 37, -1, -1));

        transactionTable.setAutoCreateRowSorter(true);
        transactionTable.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        transactionTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Date", "Transaction", "Product Name", "Quantity", "Description", "Remarks", "value1", "value2"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        transactionTable.setRowHeight(20);
        jScrollPane1.setViewportView(transactionTable);
        if (transactionTable.getColumnModel().getColumnCount() > 0) {
            transactionTable.getColumnModel().getColumn(3).setMaxWidth(200);
        }

        jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 100, 1050, 404));

        salesCheckBox.setText("Sales");
        salesCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                salesCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(salesCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 60, -1, -1));

        deliveryCheckBox.setText("Delivery");
        deliveryCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deliveryCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(deliveryCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 60, -1, -1));

        tradeCheckBox.setText("Trade-in");
        tradeCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tradeCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(tradeCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 60, -1, -1));

        replacementCheckBox.setText("Replacement");
        replacementCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                replacementCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(replacementCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 60, -1, -1));

        transferCheckBox.setText("Transfer");
        transferCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transferCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(transferCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 60, -1, -1));

        returnsCheckBox.setText("Returns");
        returnsCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returnsCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(returnsCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 60, -1, -1));

        adjustmentsCheckBox.setText("Adjustments");
        adjustmentsCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                adjustmentsCheckBoxActionPerformed(evt);
            }
        });
        jPanel2.add(adjustmentsCheckBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(900, 60, -1, -1));

        jButton10.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton10.setText("Details");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });
        jPanel2.add(jButton10, new org.netbeans.lib.awtextra.AbsoluteConstraints(880, 510, -1, -1));

        jButton3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButton3.setText("Save As");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        jPanel2.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(970, 510, -1, -1));

        jTabbedPane1.addTab("Transactions", jPanel2);

        add(jTabbedPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 1060, 570));
    }// </editor-fold>//GEN-END:initComponents

    private void salesCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salesCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_salesCheckBoxActionPerformed

    private void deliveryCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deliveryCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_deliveryCheckBoxActionPerformed

    private void tradeCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tradeCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_tradeCheckBoxActionPerformed

    private void replacementCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_replacementCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_replacementCheckBoxActionPerformed

    private void transferCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transferCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_transferCheckBoxActionPerformed

    private void returnsCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returnsCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_returnsCheckBoxActionPerformed

    private void adjustmentsCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_adjustmentsCheckBoxActionPerformed
        reportsController.updateReportTable();
    }//GEN-LAST:event_adjustmentsCheckBoxActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        reportsController.viewDetails();       
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        salesDialog.dispose();
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        deliveryDialog.dispose();
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        transferDialog.dispose();
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        returnsDialog.dispose();
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        adjustmentsDialog.dispose();
    }//GEN-LAST:event_jButton5ActionPerformed

    private void dateChooserComboFromOnSelectionChange(datechooser.events.SelectionChangedEvent evt) {//GEN-FIRST:event_dateChooserComboFromOnSelectionChange
        reportsController.updateReportTable();
    }//GEN-LAST:event_dateChooserComboFromOnSelectionChange

    private void dateChooserComboToOnSelectionChange(datechooser.events.SelectionChangedEvent evt) {//GEN-FIRST:event_dateChooserComboToOnSelectionChange
        reportsController.updateReportTable();
    }//GEN-LAST:event_dateChooserComboToOnSelectionChange

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        tradeInDialog.dispose();
    }//GEN-LAST:event_jButton11ActionPerformed

    private void dateChooserComboFromOnCommit(datechooser.events.CommitEvent evt) {//GEN-FIRST:event_dateChooserComboFromOnCommit
        reportsController.updateReportTable();
    }//GEN-LAST:event_dateChooserComboFromOnCommit

    private void dateChooserComboToOnCommit(datechooser.events.CommitEvent evt) {//GEN-FIRST:event_dateChooserComboToOnCommit
        reportsController.updateReportTable();
    }//GEN-LAST:event_dateChooserComboToOnCommit

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        reportsController.saveTransactionReportFile();
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        reportsController.search();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void productFilterCategoryComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_productFilterCategoryComboBoxActionPerformed
       // reportsController.filterProducts();
    }//GEN-LAST:event_productFilterCategoryComboBoxActionPerformed

    private void productFilterSupplierComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_productFilterSupplierComboBoxActionPerformed
       // reportsController.filterProducts();
    }//GEN-LAST:event_productFilterSupplierComboBoxActionPerformed

    private void clearMarkKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_clearMarkKeyPressed
        
    }//GEN-LAST:event_clearMarkKeyPressed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        reportsController.saveInventoryReportFile();
    }//GEN-LAST:event_jButton4ActionPerformed

    private void clearMarkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearMarkMouseClicked
        reportsController.clearSearch();
    }//GEN-LAST:event_clearMarkMouseClicked

    private void secondhandActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_secondhandActionPerformed
        reportsController.updateCurrentInventory();
    }//GEN-LAST:event_secondhandActionPerformed

    private void brandnewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_brandnewActionPerformed
        reportsController.updateCurrentInventory();
    }//GEN-LAST:event_brandnewActionPerformed

    private void defectiveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_defectiveActionPerformed
        reportsController.updateCurrentInventory();
    }//GEN-LAST:event_defectiveActionPerformed

    private void searchTextFieldKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_searchTextFieldKeyPressed
        if (evt.getKeyCode()== KeyEvent.VK_ENTER)
	{
            jButton1.doClick();
	}
    }//GEN-LAST:event_searchTextFieldKeyPressed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        replacementDialog.dispose();
    }//GEN-LAST:event_jButton12ActionPerformed
            
    public static JTable getReportsTable(){
        return inventoryTable;
    }

    public static JComboBox<ComboItem> getCategoryComboBox(){
        return productFilterCategoryComboBox;
    }
    
    public static JComboBox<ComboItem> getSupplierComboBox(){
        return productFilterSupplierComboBox;
    }
    
    public static void updateInventoryTable(){
        reportsController.updateCurrentInventory();
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel adjDate;
    private javax.swing.JLabel adjOperation;
    private javax.swing.JLabel adjProd;
    private javax.swing.JLabel adjQty;
    private javax.swing.JLabel adjReason;
    private javax.swing.JCheckBox adjustmentsCheckBox;
    private javax.swing.JDialog adjustmentsDialog;
    private javax.swing.JCheckBox brandnew;
    private javax.swing.JLabel clearMark;
    private datechooser.beans.DateChooserCombo dateChooserComboFrom;
    private datechooser.beans.DateChooserCombo dateChooserComboTo;
    private javax.swing.JCheckBox defective;
    private javax.swing.JCheckBox deliveryCheckBox;
    private javax.swing.JLabel deliveryDate;
    private javax.swing.JDialog deliveryDialog;
    private javax.swing.JLabel deliveryProd;
    private javax.swing.JLabel deliveryQty;
    private javax.swing.JLabel deliveryReceipt;
    private javax.swing.JLabel deliverySupp;
    private static javax.swing.JTable inventoryTable;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private static javax.swing.JComboBox<ComboItem> productFilterCategoryComboBox;
    private static javax.swing.JComboBox<ComboItem> productFilterSupplierComboBox;
    private javax.swing.JCheckBox replacementCheckBox;
    private javax.swing.JDialog replacementDialog;
    private javax.swing.JCheckBox returnsCheckBox;
    private javax.swing.JLabel returnsDate;
    private javax.swing.JDialog returnsDialog;
    private javax.swing.JLabel returnsProd;
    private javax.swing.JLabel returnsQty;
    private javax.swing.JLabel returnsRemarks;
    private javax.swing.JLabel returnsStatus;
    private javax.swing.JLabel returnsSupplier;
    private javax.swing.JLabel rplDate;
    private javax.swing.JLabel rplName;
    private javax.swing.JLabel rplQty;
    private javax.swing.JLabel rplRcpt;
    private javax.swing.JLabel rplRemarks;
    private javax.swing.JLabel rplWith;
    private javax.swing.JCheckBox salesCheckBox;
    private javax.swing.JLabel salesDate;
    private javax.swing.JDialog salesDialog;
    private javax.swing.JLabel salesProd;
    private javax.swing.JLabel salesQty;
    private javax.swing.JLabel salesReceipt;
    private javax.swing.JLabel salesSerial;
    private javax.swing.JLabel salesType;
    private javax.swing.JTextField searchTextField;
    private javax.swing.JCheckBox secondhand;
    private javax.swing.JCheckBox tradeCheckBox;
    private javax.swing.JLabel tradeDate;
    private javax.swing.JDialog tradeInDialog;
    private javax.swing.JLabel tradeProd;
    private javax.swing.JLabel tradeQty;
    private javax.swing.JLabel tradeTo;
    private javax.swing.JLabel tradeType;
    private javax.swing.JLabel tradeType1;
    private javax.swing.JTable transactionTable;
    private javax.swing.JCheckBox transferCheckBox;
    private javax.swing.JLabel transferDate;
    private javax.swing.JDialog transferDialog;
    private javax.swing.JLabel transferFrom;
    private javax.swing.JLabel transferProd;
    private javax.swing.JLabel transferQty;
    private javax.swing.JLabel transferTo;
    // End of variables declaration//GEN-END:variables
}
